Optimal. Leaf size=26 \[ \frac {(x+1)^{m+1} \left (x^2+2 x+1\right )^n}{m+2 n+1} \]
________________________________________________________________________________________
Rubi [A] time = 0.01, antiderivative size = 26, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 16, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.125, Rules used = {644, 32} \begin {gather*} \frac {(x+1)^{m+1} \left (x^2+2 x+1\right )^n}{m+2 n+1} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 32
Rule 644
Rubi steps
\begin {align*} \int (1+x)^m \left (1+2 x+x^2\right )^n \, dx &=\left ((1+x)^{-2 n} \left (1+2 x+x^2\right )^n\right ) \int (1+x)^{m+2 n} \, dx\\ &=\frac {(1+x)^{1+m} \left (1+2 x+x^2\right )^n}{1+m+2 n}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.01, size = 23, normalized size = 0.88 \begin {gather*} \frac {(x+1)^{m+1} \left ((x+1)^2\right )^n}{m+2 n+1} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [F] time = 0.05, size = 0, normalized size = 0.00 \begin {gather*} \int (1+x)^m \left (1+2 x+x^2\right )^n \, dx \end {gather*}
Verification is not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.42, size = 24, normalized size = 0.92 \begin {gather*} \frac {{\left (x + 1\right )}^{m} {\left (x + 1\right )}^{2 \, n} {\left (x + 1\right )}}{m + 2 \, n + 1} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.17, size = 37, normalized size = 1.42 \begin {gather*} \frac {{\left (x + 1\right )}^{m} {\left (x + 1\right )}^{2 \, n} x + {\left (x + 1\right )}^{m} {\left (x + 1\right )}^{2 \, n}}{m + 2 \, n + 1} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.04, size = 27, normalized size = 1.04 \begin {gather*} \frac {\left (x +1\right )^{m +1} \left (x^{2}+2 x +1\right )^{n}}{m +2 n +1} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 1.35, size = 27, normalized size = 1.04 \begin {gather*} \frac {{\left (x + 1\right )} e^{\left (m \log \left (x + 1\right ) + 2 \, n \log \left (x + 1\right )\right )}}{m + 2 \, n + 1} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.59, size = 26, normalized size = 1.00 \begin {gather*} \frac {{\left (x+1\right )}^{m+1}\,{\left (x^2+2\,x+1\right )}^n}{m+2\,n+1} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \begin {cases} \frac {x \left (x + 1\right )^{m} \left (x^{2} + 2 x + 1\right )^{n}}{m + 2 n + 1} + \frac {\left (x + 1\right )^{m} \left (x^{2} + 2 x + 1\right )^{n}}{m + 2 n + 1} & \text {for}\: m \neq - 2 n - 1 \\\int \left (x + 1\right )^{- 2 n - 1} \left (\left (x + 1\right )^{2}\right )^{n}\, dx & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________